package com.corpdata.system.md.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.corpdata.system.md.entity.SMSRecord;
import com.corpdata.system.md.service.SMSMtService;
import com.corpdata.system.md.service.impl.SMSMtServiceImpl;

@Controller
@RequestMapping("sms")
public class SmsConntroller {
	@Autowired
	private SMSMtService smsService;
	
	@RequestMapping("smsMt1")
	@ResponseBody
	public String smsRM1(){
		String phoneNumber="18519710738";
		String code="125054";
		SMSRecord smsRecord =smsService.sendTheVerificationCode(phoneNumber, code);
		String result="";
		return result;
	}
	
	@RequestMapping("smsMt2")
	@ResponseBody
	public String smsRM2(){
		String phoneNumber="18519710738";
		String team="元霆数据";
		String building="金泰大厦-2208";
		String time="2018-8-8 13:00至2018-8-8 17:00";
		SMSRecord smsRecord =smsService.meetingRoomNoticeRentalPersonnelNotificationOfSuccess(phoneNumber
				, team, building, time);
		String result="";
		return result;
	}
	
	@RequestMapping("smsMt3")
	@ResponseBody
	public String smsRM3(){
		String phoneNumber="18519710738";
		String team="元霆数据";
		String building="金泰大厦-2208";
		String hour="1";
		SMSRecord smsRecord =smsService.meetingRoomNoticeRentalStaffNoticeOfComingSoon( phoneNumber
				, team, building, hour);
		String result="";
		return result;
	}
	
	@RequestMapping("smsMt4")
	@ResponseBody
	public String smsRM4(){
		String phoneNumber="18519710738";
		String building="金泰大厦-2208";
		String hour="1";
		String time="2018-8-8 13:00至2018-8-8 17:00";
		SMSRecord smsRecord =smsService.meetingRoomNotificationTenantNotificationOfSuccess( phoneNumber,
				 building, time, hour);
		String result="";
		return result;
	}
	
	@RequestMapping("smsMt5")
	@ResponseBody
	public String smsRM5(){
		String phoneNumber="18519710738";
		String building="金泰大厦-2208";
		String hour="1";
		String phone="15614236574";
		SMSRecord smsRecord =smsService.MeetingRoomNotificationTenantNoticeOfComingSoon( phoneNumber,
				 building, hour, phone);
		String result="";
		return result;
	}
	
	@RequestMapping("smsMt6")
	@ResponseBody
	public String smsRM6(){
		String phoneNumber="15614236574";
		String building="金泰大厦-2208";
		String project="参观";
		String phone="15614236574";
		String time="2018-8-8 17:00";
		SMSRecord smsRecord =smsService.visitorAppointmentVisitor( phoneNumber,
				 building, project, time, phone);
		String result="";
		return result;
	}

	@RequestMapping("smsMt7")
	@ResponseBody
	public String smsRM7(){
		String phoneNumber="15614236574";
		String building="金泰大厦-2208";
		String project="参观";
		String phone="15614236574";
		String time="2018-8-8 17:00";
		String visitor="李三，北京ABC有限公司";
		SMSRecord smsRecord =smsService.visitorAppointmentRentalStaff( phoneNumber,
				 visitor, time, building, project, phone);
		String result="";
		return result;
	}
	
	@RequestMapping("smsMt8")
	@ResponseBody
	public String smsRM8(){
		String phoneNumber="15614236574";
		String building="金泰大厦-2208";
		String project="参观";
		String time="2018-8-8 17:00";
		String invitee="于春辉";
		String address="北京市朝阳区西坝河南路一号金泰大厦5层";
		SMSRecord smsRecord =smsService.invitingVisitorsInvitees( phoneNumber,
				 invitee, time, building, project, address);
		String result="";
		return result;
	}
	
	@RequestMapping("smsMt9")
	@ResponseBody
	public String smsRM9(){
		String phoneNumber="15614236574";
		String project="参观";
		String visitor="于春辉";
		String wx="huigege-12138";
		String phone="15614236574";
		SMSRecord smsRecord =smsService.invitingVisitorsInviters( phoneNumber,
				 visitor, project, phone, wx);
		String result="";
		return result;
	}
	
	@RequestMapping("smsMt")
	public String todemohtmlsmsRM(){
		return "system/md/demo";
	}
}
